        
<?php
    
foreach($kolektivy as $row){
    echo "<fieldset>";
	  echo "<legend>Informácie  : ".$row['trieda']."</legend>";
    echo "<br>";
    
    echo "<p><label>Názov triedy:</label>";
	  echo $row['trieda'];
    echo "</p>";
    
    echo "<p><label>Počet žiakov:</label>"; 
    echo $row['pocet'];
    echo "</p>";
    
    echo "<p><label>Škola:</label>"; 
    echo $row['skola'];
    echo "</p>";
    
    echo "<p><label>Priemerný vek:</label>"; 
    echo $row['vek'];
    echo "</p>";


    echo "<p><label>Zameranie: </label>";
	  echo $row['zameranie'];
    echo "</p>";
  
    echo "<br>";
    echo "<br>";
    
    echo "<fieldset>";
	  echo "<legend>Ucitel</legend>";
    echo "<br>";
    
    $ucitel = $row['ucitel'];
    
    echo "<p><label>Meno:</label>";
	  echo $ucitel['meno'];
    echo "</p>";
    
    echo "<p><label>Priezvisko:</label>"; 
    echo $ucitel['priezvisko'];
    echo "</p>";
    
    echo "<p><label>Email:</label>"; 
    echo $ucitel['email'];
    echo "</p>";
    
    echo "<p><label>Mobil:</label>"; 
    echo $ucitel['telefon'];
    echo "</p>";
    
    echo "<p><label>Škola:</label>"; 
    echo $ucitel['skola'];
    echo "</p>";
    
    echo "<br>";
    echo "<br>";
    
    echo "</fieldset>";
    echo "</fieldset>";
    
    echo "<br>";
    echo "<br>";
    }
    
    
	
  echo "<p><label></label>";
  ?>